include "../model/TChannelStream.thrift"
include "../model/TLiveStream.thrift"
include "../model/TQuery.thrift"
namespace java com.iqiyi.pps.epg.api.server.web.stream

 service ChannelStreamWebService {
     string create(1:i64 fatherId,2:string streamName,3:string streamType,4:string streamIp,5:i32 peerCount,6:i32 bcsNum, 7:i32 cutterIdFlv, 8:i32 cutterIdTs, 9:string dest, 10:i32 streamApiVersion,
     11:string dolbyStreamName, 12:string dolbyStreamUrl, 13:string dolbyAudioChannel, 14:i32 encodeType, 15:string streamAddress, 16:i32 playType, 17:i32 backupEachOther);
     string deleteBy(1:i64 fatherId);
     string deleteById(1:i64 id);
     TChannelStream.TChannelStream getById(1:i64 id);
     list<TChannelStream.TChannelStream> getList(1:i64 fatherId);
     string edit(1:TChannelStream.TChannelStream tChannelStream);
     TChannelStream.TStreamInfoSuggest streamInfoSuggest(1:i64 fatherId, 2:string streamName);
     string restart(1:i64 fatherId,2:string streamName,3:string newStreamIp);
     i32 streamStatus(1:i64 fatherId, 2:string streamName);
     TLiveStream.TLiveStream getDefaultFLVStreamByName(1:i64 fatherId, 2:string streamName);

     TChannelStream.TChannelStreamPage getSearchList(1:TQuery.TPage page, 2:TQuery.TFilter filter);

     i32 switchBackup(1:i64 fatherId, 2:i64 qipuId, 3:string opUser);

     TChannelStream.TChannelStream notifyChange(1:string streamName, 2:string sliceIndex);

 }
